package ${package.Controller};

import ${package.Entity}.repository.${entity}Repository;
import ${package.Service}.${table.serviceName};
import org.springframework.web.bind.annotation.*;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;

/**
 * @Author ${author}
 * @Description ${table.comment!}控制器
 * @Date ${date}
 */
@Slf4j
@RestController
@RequiredArgsConstructor
@RequestMapping("/${cfg.urlRoot}/${entity?uncap_first}")
public class ${table.controllerName} {

    /**
     * ${entity}Service 的注入
     */
    private final ${entity}Service ${entity?uncap_first}Service;

    /**
     * ${entity}Repository 的注入
     */
    private final ${entity}Repository ${entity?uncap_first}Repository;

}